<?php $data = $this->data ;?>
<?php //Zend_Debug::dump($this->data); ?>
<?php $style_th = 'style="background-color:#CCCCCC"' ;?>
<?php $style_td = 'style="border:solid 1px #000"' ;?>
<?php $style_is_code = 'style="color:#FF0000"' ;?>

<h2>Danh sách phiếu <?php echo $data['string_inbound_type'] ?> kho "<?php echo $data['string_warehouse_group_name'] ;?>".</h2>
<table cellpadding="4" cellspacing="0" border='1' style="width:100%; border-collapse:collapse">
	<thead>
		<tr> 
			<th <?php echo $style_th ?>>STT</th>
			<th <?php echo $style_th ?>>Mã phiếu <?php echo $data['string_inbound_type'] ?> kho</th>
			<th <?php echo $style_th ?>>Nội dung</th>		
			<th <?php echo $style_th ?>>Ngày lập phiếu</th>
			<th <?php echo $style_th ?>>Người lập phiếu</th>
			<th <?php echo $style_th ?>>Kho <?php echo $data['string_inbound_type'] ?> hàng</th>
			<th <?php echo $style_th ?>>Đơn vị <?php echo $data['string_inbound_type_2'] ?> hàng</th>
		</tr>
	</thead>
	<tbody>
	<?php if (count($data['paginator']) > 0): ?>
		<?php $no = 0; ?>
		<?php foreach ($data['paginator'] as $row): ?>
		<tr>
			<td align="center"><?php echo $no ;?></td>
			<td <?php echo $style_is_code ;?>><?php echo $row->inbound_code ?></td>
			<td><?php echo $row->inbound_note; ?></td>
			<td align="center"><?php echo date('d.m.Y.', $row->inbound_create_time); ?></td>
			<td><?php echo $row->inbound_create_user . " - " . $row->m_Array['account_fullname']; ?></td>
			<td><?php echo $row->inbound_warehouse_code . " - " . $row->m_Array['warehouse_name']; ?></td>
			<td><?php echo $row->m_Array['company_name']; ?></td>			
		</tr>
			<?php $no++ ;?>
		<?php endforeach; ?>
	<?php endif;?>
	</tbody>
</table>